package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class Notice {
    /** */
    private Long id;

    /** */
    private String title;

    /** */
    private Employee createUser;

    /** */
    private Date createTime;

    /** */
    private Warning warning;

    private boolean status;

    private String info;

    private EmployeeNotice employeeNotice;
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getNowDate(){
        return new SimpleDateFormat("dd天HH时mm分ss秒").format(new Date().getTime() - this.createTime.getTime());
    }
}